package com.lingnan.tijian.mapper;

import com.lingnan.tijian.domain.Cidetailedreport;
import com.lingnan.tijian.domain.Cireport;
import com.lingnan.tijian.domain.Orders;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CidetailedreportMapper {
    int deleteByPrimaryKey(Integer cidrId);

    int insert(Cidetailedreport record);

    int insertSelective(Cidetailedreport record);

    Cidetailedreport selectByPrimaryKey(Integer cidrId);

    int updateByPrimaryKeySelective(Cidetailedreport record);

    int updateByPrimaryKey(Cidetailedreport record);

    @Select("select cidrId, name, unit, minrange, maxrange, normalValue, normalValueString, type, value, \n" +
            "    isError, ciId, orderId from cidetailedreport where ciId=#{ciId} and orderId=#{orderId}")
    List<Cidetailedreport> listCidetailedReportByCiidAndOrderId(Cireport cireport);
}

















